//
//  EBMBaseTableView.h
//  eBondMall
//
//  Created by apple on 2020/3/31.
//  Copyright © 2020 zhaoshijie. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIScrollView+EmptyDataSet.h"
#import "MJRefresh.h"


@interface EBMBaseTableView : UITableView<DZNEmptyDataSetSource,DZNEmptyDataSetDelegate>


#pragma mark --------------创建变量--------------

//  未登录列表背景的设置状态
@property(nonatomic,assign)BOOL userLoginStatus;

//  状态
@property(nonatomic,assign)BOOL isLoadingStatus;


#pragma mark --------------方法--------------

/// 注册cell nib
/// @param className cell名称
- (void)registerNibWithCellClassName:(NSString *)className;

/// 注册cell class
/// @param class cell的类
- (void)registerClassWithCellClass:(Class)class;

/// 添加上下拉刷新加载
/// @param headrRefreshingBlock 下拉刷新
/// @param footerRefreshingBlock 上拉加载
- (void)loadTableMjHeaderWithHeadrRefreshingBlock:(MJRefreshComponentAction)headrRefreshingBlock
                            footerRefreshingBlock:(MJRefreshComponentAction)footerRefreshingBlock;

/// 下拉刷新
- (void)beginRefreshing;

/// tableView结束刷新
- (void)baseEndRefresh;

/// 刷新
- (void)baseReloadData;

/// 请求时刷新背景
- (void)reloadEmptyDataSetInDispatchInRqeust;


/// 刷新section
/// @param section 部分
- (void)reloadSectionsWithSection:(NSInteger)section;



@end


